package com.geekaca.test;

public class LearnIf {
    public static void main(String[] args) {
        int yourAge = 23;
        yourAge =17;
        if (yourAge>=18){
            System.out.println("你是成年人.");
        }else {
            System.out.println("你是未成年人.");
        }

        double costMoney = 4000.8;

        if (costMoney>=1000){
            costMoney=costMoney*0.8;
        }

        System.out.println(costMoney);
    }
}
